package com.zhonghui.modlules.order.eshopService.Ipml;


import com.eshop.service.Impl.BaseServiceImpl;
import com.zhonghui.modlules.order.eshopMapper.StoreOrderStatusMapper;
import com.zhonghui.modlules.order.eshopService.StoreOrderStatusService;
import com.zhonghui.modlules.order.eshopVo.StoreOrderStatus;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional(
        propagation = Propagation.SUPPORTS,
        readOnly = true,
        rollbackFor = {Exception.class}
)
public class StoreOrderStatusServiceImpl  extends BaseServiceImpl<StoreOrderStatusMapper, StoreOrderStatus> implements StoreOrderStatusService {
    public void create(Long oid, String changetype, String changeMessage) {
        StoreOrderStatus storeOrderStatus = new StoreOrderStatus();
        storeOrderStatus.setOid(oid);
        storeOrderStatus.setChangeType(changetype);
        storeOrderStatus.setChangeMessage(changeMessage);
        ((StoreOrderStatusMapper)this.baseMapper).insert(storeOrderStatus);
    }
}
